home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 004a / grammar2.zip / UPDATECG.BAT < prev    next >
DOS Batch File  |  1989-12-29  |  2KB  |  39 lines

  1. ECHO OFF
  2. cls
  3. REM  UPDATECG.BAT FOR CG 2.0 (December 1989)
  4. if not exist CG.EXE goto QUIT
  5. if exist CG1.ARC goto QUIT
  6. if %1. == . goto DEF
  7. if not exist %1CG1.ARC goto QUIT
  8. %1pkxarc -r %1cg1 upd*.bat >nul
  9. UPD1 %1 >nul
  10. :DEF
  11. if not exist A:CG1.ARC goto QUIT
  12. A:pkxarc -r A:cg1 upd*.bat >nul
  13. UPD1 A: >nul
  14. :QUIT
  15. cls
  16. ECHO Current drive and directory:
  17. cd
  18. ECHO  ╔═══════════════════════════════════════════════════════════════════════╗
  19. ECHO  ║                                                                       ║
  20. ECHO  ║     Something is wrong.  Either the Correct Grammar files cannot      ║
  21. ECHO  ║     be located on the drive and directory shown above or you are      ║
  22. ECHO  ║     starting from the wrong drive.                                    ║
  23. ECHO  ║                                                                       ║
  24. if %1. == . goto DEFQUIT
  25. if EXIST %13 echo  ║     To update, insert the Correct Grammar disk in a diskette drive.   ║
  26. goto QUIT3
  27. :DEFQUIT
  28. if EXIST A:3 echo  ║     To update, insert the Correct Grammar disk in a diskette drive.   ║
  29. if not exist A:3 echo  ║     To update Correct Grammar, insert DISK 1 in your diskette drive.  ║
  30. :QUIT3
  31. echo  ║     Change to the hard disk drive and subdirectory in which you want  ║
  32. echo  ║     Correct Grammar updated.  Type the command  A:UPDATECG.           ║
  33. echo  ║     If your diskette drive is not A:, type the command  d:UPDATECG d: ║
  34. echo  ║     where d: represents the diskette drive containing the Correct     ║
  35. echo  ║     Grammar diskette.                                                 ║
  36. echo  ║                                                                       ║
  37. echo  ╚═══════════════════════════════════════════════════════════════════════╝
  38. :END
  39.